package com.party.orders.service;


import java.util.List;

import com.party.domain.Coupon;
import com.party.orders.dto.CountAmountDTO;
import com.party.orders.vo.CouponVO;

/**
 * 
 * @author Caizhf
 * @date 2017年7月28日下午4:19:38
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: </p>
 *
 */
public interface CouponService {
	
	final int UNUSE = 0;
	final int USED = 1;

	Coupon findById(int cpid);

	List<CouponVO> list(int pageNum, int pageSize, String key, Integer userId, Boolean isOverdue,Integer couponStatus);

	void save(Integer userId, int cpid);

	List<Coupon> listByCanUse(CountAmountDTO dto, int userId);

}
